package com.ytjj.qmyx.admin.model;

import java.util.ArrayList;
import java.util.List;

public class ChannelLabelAutoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ChannelLabelAutoExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLabelIdIsNull() {
            addCriterion("label_id is null");
            return (Criteria) this;
        }

        public Criteria andLabelIdIsNotNull() {
            addCriterion("label_id is not null");
            return (Criteria) this;
        }

        public Criteria andLabelIdEqualTo(Integer value) {
            addCriterion("label_id =", value, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdNotEqualTo(Integer value) {
            addCriterion("label_id <>", value, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdGreaterThan(Integer value) {
            addCriterion("label_id >", value, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("label_id >=", value, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdLessThan(Integer value) {
            addCriterion("label_id <", value, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdLessThanOrEqualTo(Integer value) {
            addCriterion("label_id <=", value, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdIn(List<Integer> values) {
            addCriterion("label_id in", values, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdNotIn(List<Integer> values) {
            addCriterion("label_id not in", values, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdBetween(Integer value1, Integer value2) {
            addCriterion("label_id between", value1, value2, "labelId");
            return (Criteria) this;
        }

        public Criteria andLabelIdNotBetween(Integer value1, Integer value2) {
            addCriterion("label_id not between", value1, value2, "labelId");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andProductCategoryCheckIsNull() {
            addCriterion("product_category_check is null");
            return (Criteria) this;
        }

        public Criteria andProductCategoryCheckIsNotNull() {
            addCriterion("product_category_check is not null");
            return (Criteria) this;
        }

        public Criteria andProductCategoryCheckEqualTo(Integer value) {
            addCriterion("product_category_check =", value, "productCategoryCheck");
            return (Criteria) this;
        }

        public Criteria andProductCategoryCheckNotEqualTo(Integer value) {
            addCriterion("product_category_check <>", value, "productCategoryCheck");
            return (Criteria) this;
        }

        public Criteria andProductCategoryCheckGreaterThan(Integer value) {
            addCriterion("product_category_check >", value, "productCategoryCheck");
            return (Criteria) this;
        }

        public Criteria andProductCategoryCheckGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_category_check >=", value, "productCategoryCheck");
            return (Criteria) this;
        }

        public Criteria andProductCategoryCheckLessThan(Integer value) {
            addCriterion("product_category_check <", value, "productCategoryCheck");
            return (Criteria) this;
        }

        public Criteria andProductCategoryCheckLessThanOrEqualTo(Integer value) {
            addCriterion("product_category_check <=", value, "productCategoryCheck");
            return (Criteria) this;
        }

        public Criteria andProductCategoryCheckIn(List<Integer> values) {
            addCriterion("product_category_check in", values, "productCategoryCheck");
            return (Criteria) this;
        }

        public Criteria andProductCategoryCheckNotIn(List<Integer> values) {
            addCriterion("product_category_check not in", values, "productCategoryCheck");
            return (Criteria) this;
        }

        public Criteria andProductCategoryCheckBetween(Integer value1, Integer value2) {
            addCriterion("product_category_check between", value1, value2, "productCategoryCheck");
            return (Criteria) this;
        }

        public Criteria andProductCategoryCheckNotBetween(Integer value1, Integer value2) {
            addCriterion("product_category_check not between", value1, value2, "productCategoryCheck");
            return (Criteria) this;
        }

        public Criteria andBrandNameCheckIsNull() {
            addCriterion("brand_name_check is null");
            return (Criteria) this;
        }

        public Criteria andBrandNameCheckIsNotNull() {
            addCriterion("brand_name_check is not null");
            return (Criteria) this;
        }

        public Criteria andBrandNameCheckEqualTo(Integer value) {
            addCriterion("brand_name_check =", value, "brandNameCheck");
            return (Criteria) this;
        }

        public Criteria andBrandNameCheckNotEqualTo(Integer value) {
            addCriterion("brand_name_check <>", value, "brandNameCheck");
            return (Criteria) this;
        }

        public Criteria andBrandNameCheckGreaterThan(Integer value) {
            addCriterion("brand_name_check >", value, "brandNameCheck");
            return (Criteria) this;
        }

        public Criteria andBrandNameCheckGreaterThanOrEqualTo(Integer value) {
            addCriterion("brand_name_check >=", value, "brandNameCheck");
            return (Criteria) this;
        }

        public Criteria andBrandNameCheckLessThan(Integer value) {
            addCriterion("brand_name_check <", value, "brandNameCheck");
            return (Criteria) this;
        }

        public Criteria andBrandNameCheckLessThanOrEqualTo(Integer value) {
            addCriterion("brand_name_check <=", value, "brandNameCheck");
            return (Criteria) this;
        }

        public Criteria andBrandNameCheckIn(List<Integer> values) {
            addCriterion("brand_name_check in", values, "brandNameCheck");
            return (Criteria) this;
        }

        public Criteria andBrandNameCheckNotIn(List<Integer> values) {
            addCriterion("brand_name_check not in", values, "brandNameCheck");
            return (Criteria) this;
        }

        public Criteria andBrandNameCheckBetween(Integer value1, Integer value2) {
            addCriterion("brand_name_check between", value1, value2, "brandNameCheck");
            return (Criteria) this;
        }

        public Criteria andBrandNameCheckNotBetween(Integer value1, Integer value2) {
            addCriterion("brand_name_check not between", value1, value2, "brandNameCheck");
            return (Criteria) this;
        }

        public Criteria andActivityCheckIsNull() {
            addCriterion("activity_check is null");
            return (Criteria) this;
        }

        public Criteria andActivityCheckIsNotNull() {
            addCriterion("activity_check is not null");
            return (Criteria) this;
        }

        public Criteria andActivityCheckEqualTo(Integer value) {
            addCriterion("activity_check =", value, "activityCheck");
            return (Criteria) this;
        }

        public Criteria andActivityCheckNotEqualTo(Integer value) {
            addCriterion("activity_check <>", value, "activityCheck");
            return (Criteria) this;
        }

        public Criteria andActivityCheckGreaterThan(Integer value) {
            addCriterion("activity_check >", value, "activityCheck");
            return (Criteria) this;
        }

        public Criteria andActivityCheckGreaterThanOrEqualTo(Integer value) {
            addCriterion("activity_check >=", value, "activityCheck");
            return (Criteria) this;
        }

        public Criteria andActivityCheckLessThan(Integer value) {
            addCriterion("activity_check <", value, "activityCheck");
            return (Criteria) this;
        }

        public Criteria andActivityCheckLessThanOrEqualTo(Integer value) {
            addCriterion("activity_check <=", value, "activityCheck");
            return (Criteria) this;
        }

        public Criteria andActivityCheckIn(List<Integer> values) {
            addCriterion("activity_check in", values, "activityCheck");
            return (Criteria) this;
        }

        public Criteria andActivityCheckNotIn(List<Integer> values) {
            addCriterion("activity_check not in", values, "activityCheck");
            return (Criteria) this;
        }

        public Criteria andActivityCheckBetween(Integer value1, Integer value2) {
            addCriterion("activity_check between", value1, value2, "activityCheck");
            return (Criteria) this;
        }

        public Criteria andActivityCheckNotBetween(Integer value1, Integer value2) {
            addCriterion("activity_check not between", value1, value2, "activityCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDateCheckIsNull() {
            addCriterion("launch_date_check is null");
            return (Criteria) this;
        }

        public Criteria andLaunchDateCheckIsNotNull() {
            addCriterion("launch_date_check is not null");
            return (Criteria) this;
        }

        public Criteria andLaunchDateCheckEqualTo(Integer value) {
            addCriterion("launch_date_check =", value, "launchDateCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDateCheckNotEqualTo(Integer value) {
            addCriterion("launch_date_check <>", value, "launchDateCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDateCheckGreaterThan(Integer value) {
            addCriterion("launch_date_check >", value, "launchDateCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDateCheckGreaterThanOrEqualTo(Integer value) {
            addCriterion("launch_date_check >=", value, "launchDateCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDateCheckLessThan(Integer value) {
            addCriterion("launch_date_check <", value, "launchDateCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDateCheckLessThanOrEqualTo(Integer value) {
            addCriterion("launch_date_check <=", value, "launchDateCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDateCheckIn(List<Integer> values) {
            addCriterion("launch_date_check in", values, "launchDateCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDateCheckNotIn(List<Integer> values) {
            addCriterion("launch_date_check not in", values, "launchDateCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDateCheckBetween(Integer value1, Integer value2) {
            addCriterion("launch_date_check between", value1, value2, "launchDateCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDateCheckNotBetween(Integer value1, Integer value2) {
            addCriterion("launch_date_check not between", value1, value2, "launchDateCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDayCheckIsNull() {
            addCriterion("launch_day_check is null");
            return (Criteria) this;
        }

        public Criteria andLaunchDayCheckIsNotNull() {
            addCriterion("launch_day_check is not null");
            return (Criteria) this;
        }

        public Criteria andLaunchDayCheckEqualTo(Integer value) {
            addCriterion("launch_day_check =", value, "launchDayCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDayCheckNotEqualTo(Integer value) {
            addCriterion("launch_day_check <>", value, "launchDayCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDayCheckGreaterThan(Integer value) {
            addCriterion("launch_day_check >", value, "launchDayCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDayCheckGreaterThanOrEqualTo(Integer value) {
            addCriterion("launch_day_check >=", value, "launchDayCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDayCheckLessThan(Integer value) {
            addCriterion("launch_day_check <", value, "launchDayCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDayCheckLessThanOrEqualTo(Integer value) {
            addCriterion("launch_day_check <=", value, "launchDayCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDayCheckIn(List<Integer> values) {
            addCriterion("launch_day_check in", values, "launchDayCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDayCheckNotIn(List<Integer> values) {
            addCriterion("launch_day_check not in", values, "launchDayCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDayCheckBetween(Integer value1, Integer value2) {
            addCriterion("launch_day_check between", value1, value2, "launchDayCheck");
            return (Criteria) this;
        }

        public Criteria andLaunchDayCheckNotBetween(Integer value1, Integer value2) {
            addCriterion("launch_day_check not between", value1, value2, "launchDayCheck");
            return (Criteria) this;
        }

        public Criteria andBuyNumCheckIsNull() {
            addCriterion("buy_num_check is null");
            return (Criteria) this;
        }

        public Criteria andBuyNumCheckIsNotNull() {
            addCriterion("buy_num_check is not null");
            return (Criteria) this;
        }

        public Criteria andBuyNumCheckEqualTo(Integer value) {
            addCriterion("buy_num_check =", value, "buyNumCheck");
            return (Criteria) this;
        }

        public Criteria andBuyNumCheckNotEqualTo(Integer value) {
            addCriterion("buy_num_check <>", value, "buyNumCheck");
            return (Criteria) this;
        }

        public Criteria andBuyNumCheckGreaterThan(Integer value) {
            addCriterion("buy_num_check >", value, "buyNumCheck");
            return (Criteria) this;
        }

        public Criteria andBuyNumCheckGreaterThanOrEqualTo(Integer value) {
            addCriterion("buy_num_check >=", value, "buyNumCheck");
            return (Criteria) this;
        }

        public Criteria andBuyNumCheckLessThan(Integer value) {
            addCriterion("buy_num_check <", value, "buyNumCheck");
            return (Criteria) this;
        }

        public Criteria andBuyNumCheckLessThanOrEqualTo(Integer value) {
            addCriterion("buy_num_check <=", value, "buyNumCheck");
            return (Criteria) this;
        }

        public Criteria andBuyNumCheckIn(List<Integer> values) {
            addCriterion("buy_num_check in", values, "buyNumCheck");
            return (Criteria) this;
        }

        public Criteria andBuyNumCheckNotIn(List<Integer> values) {
            addCriterion("buy_num_check not in", values, "buyNumCheck");
            return (Criteria) this;
        }

        public Criteria andBuyNumCheckBetween(Integer value1, Integer value2) {
            addCriterion("buy_num_check between", value1, value2, "buyNumCheck");
            return (Criteria) this;
        }

        public Criteria andBuyNumCheckNotBetween(Integer value1, Integer value2) {
            addCriterion("buy_num_check not between", value1, value2, "buyNumCheck");
            return (Criteria) this;
        }

        public Criteria andProductStockCheckIsNull() {
            addCriterion("product_stock_check is null");
            return (Criteria) this;
        }

        public Criteria andProductStockCheckIsNotNull() {
            addCriterion("product_stock_check is not null");
            return (Criteria) this;
        }

        public Criteria andProductStockCheckEqualTo(Integer value) {
            addCriterion("product_stock_check =", value, "productStockCheck");
            return (Criteria) this;
        }

        public Criteria andProductStockCheckNotEqualTo(Integer value) {
            addCriterion("product_stock_check <>", value, "productStockCheck");
            return (Criteria) this;
        }

        public Criteria andProductStockCheckGreaterThan(Integer value) {
            addCriterion("product_stock_check >", value, "productStockCheck");
            return (Criteria) this;
        }

        public Criteria andProductStockCheckGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_stock_check >=", value, "productStockCheck");
            return (Criteria) this;
        }

        public Criteria andProductStockCheckLessThan(Integer value) {
            addCriterion("product_stock_check <", value, "productStockCheck");
            return (Criteria) this;
        }

        public Criteria andProductStockCheckLessThanOrEqualTo(Integer value) {
            addCriterion("product_stock_check <=", value, "productStockCheck");
            return (Criteria) this;
        }

        public Criteria andProductStockCheckIn(List<Integer> values) {
            addCriterion("product_stock_check in", values, "productStockCheck");
            return (Criteria) this;
        }

        public Criteria andProductStockCheckNotIn(List<Integer> values) {
            addCriterion("product_stock_check not in", values, "productStockCheck");
            return (Criteria) this;
        }

        public Criteria andProductStockCheckBetween(Integer value1, Integer value2) {
            addCriterion("product_stock_check between", value1, value2, "productStockCheck");
            return (Criteria) this;
        }

        public Criteria andProductStockCheckNotBetween(Integer value1, Integer value2) {
            addCriterion("product_stock_check not between", value1, value2, "productStockCheck");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}